#! /bin/bash

cd /data/

nohup java -Xms1024m -Xmx1024m   -jar auth/target/auth-0.0.1-SNAPSHOT-exec.jar                        --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar admin/target/admin-0.0.1-SNAPSHOT-exec.jar                      --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-algorithm/target/dubhe-algorithm-0.0.1-SNAPSHOT-exec.jar  --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-data/target/dubhe-data-0.0.1-SNAPSHOT-exec.jar            --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-data-dcm/target/dubhe-data-dcm-0.0.1-SNAPSHOT-exec.jar    --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-data-task/target/dubhe-data-task-0.0.1-SNAPSHOT-exec.jar  --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-image/target/dubhe-image-0.0.1-SNAPSHOT-exec.jar          --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-k8s/target/dubhe-k8s-0.0.1-SNAPSHOT-exec.jar              --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-measure/target/dubhe-measure-0.0.1-SNAPSHOT-exec.jar      --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-model/target/dubhe-model-0.0.1-SNAPSHOT-exec.jar          --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-notebook/target/dubhe-notebook-0.0.1-SNAPSHOT-exec.jar    --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-optimize/target/dubhe-optimize-0.0.1-SNAPSHOT-exec.jar    --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-serving/target/dubhe-serving-0.0.1-SNAPSHOT-exec.jar      --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-serving-gateway/target/dubhe-serving-gateway-0.0.1-SNAPSHOT-exec.jar      --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-train/target/dubhe-train-0.0.1-SNAPSHOT-exec.jar          --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-train/target/dubhe-tadl-0.0.1-SNAPSHOT-exec.jar           --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar gateway/target/gateway-0.0.1-SNAPSHOT-exec.jar                  --spring.profiles.active=prod  > /dev/null 2>&1 &
nohup java -Xms1024m -Xmx1024m   -jar dubhe-terminal/target/dubhe-terminal-0.0.1-SNAPSHOT-exec.jar    --spring.profiles.active=prod  > /dev/null 2>&1 &

# hold the shell scripts
while true
do
    sleep 10000
done

